<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Update 页面</title>
</head>
<body>
  <center>
    <h1>用户详情</h1>
    <form th:action="${context}+'/user/update.do'">
      <table border="1px">
        <tr>
          <td>用户id</td>
          <td>
            <input type="text" name="id" th:value="${user.id}" readonly>
          </td>
        </tr>
        <tr>
          <td>用户名称</td>
          <td>
            <input type="text" name="username" th:value="${user.username}">
          </td>
        </tr>
        <tr>
          <td>用户密码</td>
          <td >
            <input type="text" name="password" th:value="${user.password}">
          </td>
        </tr>
        <tr>
          <td>用户年龄</td>
          <td>
            <input type="text" name="age"  th:value="${user.age}">
          </td>
        </tr>
        <tr>
          <td>用户电话</td>
          <td>
            <input type="text" name="phone"  th:value="${user.phone}">
          </td>
        </tr>
        <tr>
          <td>用户邮箱</td>
          <td>
            <input type="text" name="email"  th:value="${user.email}">
          </td>
        </tr>
        <tr>
          <td>所属部门</td>
          <td>
            <input type="text" name="deptId"  th:value="${user.deptId}" readonly>
          </td>
        </tr>
        <tr>
          <td colspan="2" align="center">
            <input type="submit" value="修改"/>
            <input type="button" value="返回" onclick="javascript:history.back(-1)"/>
          </td>
        </tr>
      </table>
    </form>
  </center>
</body>
</html>